import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
	plugins: [vue()],
	build: {
		outDir: 'dist',  
		target: 'es2020',
		lib: {
			entry: 'src/package/index.ts',  
			name: 'GlowGradientButton',  
			formats: ['es', 'cjs', 'umd'],  
		},
		rollupOptions: {
			external: ['vue'],
			output: {
				globals: {
					vue: 'Vue',
				},
			},
		},
		cssCodeSplit: false  ,
	},
});
